import Vue from 'vue'
import App from './App.vue'
import router from './router'
import Element from 'element-ui'
import './assets/css/global.css'
import 'element-ui/lib/theme-chalk/index.css';
import axios from "axios";
import store from './store'
import treeTable from 'vue-table-with-tree-grid'
Vue.use(Element)
Vue.component('tree-table',treeTable)
Vue.config.productionTip = false
axios.defaults.baseURL='http://47.108.144.246:8888/api/private/v1/'
Vue.prototype.$http =axios
axios.interceptors.request.use(config =>{
  config.headers.Authorization=window.sessionStorage.getItem('token')
  return config
})
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
